module Mephisto
  module Plugins
    class GroupBlog < Mephisto::Plugin
      author 'Steve Odom'
      version '0.1'
      notes "Add group blog functionality - each member can pick a theme and can be viewed separately but all posts are aggregated."
      
      public_controller 'GroupAccount', 'group_account'
      #add_route 'register', :controller => 'doppleganger', :action => 'create', :conditions => { :method => :post }
      add_route 'register', :controller => 'group_account', :action => 'create'
      
      class Schema < ActiveRecord::Migration
          def self.install
            add_column :sections, :user_id, :integer
          end
  
          def self.uninstall
            drop_table :sections, :user_id
          end
        end
        
    end
  end
end